package com.telit.firecommand.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * @Auther amy
 * @Describe 消息中心参数查询对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QueryMsgCenterDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("消息标题")
    private String title;

    @ApiModelProperty("消息状态")
    private String hasRead;

    @ApiModelProperty("查询开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date queryStartTime;

    @ApiModelProperty("查询结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date queryEndTime;

    @ApiModelProperty("消息类型")
    private String msgType;

    @ApiModelProperty("用户id")
    private Long userId;

}
